{"version":3,"sources":["script.js"],"names":["window","BlogBFileDialog","BlogBFileDialogUniqueID","arParams","this","dialogName","agent","uploadFileUrl","upload_path","id","getID","controlID","enabled","controller","fileInput","hAttachEvents","BX","delegate","InitAgent","msg","dropAutoUpload","CID","multiple","caller","classes","uploaderParent","uploader","tpl_simple","tpl_extended","selector","selector_active","doc_prefix","placeholder","findChild","className","values","FileUploadAgent","addCustomEvent","ShowUploadedFile","StopUpload","bind","onCustomEvent","parentNode","debug","prototype","Date","getTime","uploadResult","element_id","node","CreateFileRow","inputName","length","hidden","create","props","type","name","value","appendChild","push","_clearPlace","securityNode","closest","querySelector","text","upload_error","ShowUploadError","result","res","mode","element_content_type","indexOf","element_image","element_thumbnail","newNode","clone","template","tplFileRow","span","i","children","nodeType","setAttribute","closeControl","control","parent","cleanNode","AddNodeToPlaceholder","AddRowToPlaceholder","GetUploadDialog","BlogBFileDialogUploader","nodes","hasOwnProperty","innerHTML","_addUrlParam","url","param","LoadDialogs","dialogs","dlgs","setTimeout","regExp","RegExp","test","buf","match","data","fileID","sessid","bitrix_sessid","cid","mfi_mode","ajax","method","dataType","processData","prepareData","onsuccess","BlogBFileDialogDispatcher","loadScript","isElementNode","target","dropbox","DD","dropFiles","supported","FormData","isSupported","hExpandUploader","proxy","ExpandUploader","Unbind","removeCustomEvent","WDUploaded","WDUploadInProgress","documentExists","fileDropped","parentID","CreateElements","isDomNode","fileInputID","fileList","__form","BindUploadEvents","uniqueID","Math","floor","random","iframeName","iframe","style","display","document","body","iframeUpload","form","action","enctype","encoding","Callback","GetUploadFileName","fileName","substr","lastIndexOf","fileNode","file","files","isArray","forEach","success","storage","element_name","element_size","fileSize","element_url","fileURL","content_type","fileContentType","img_thumb_src","fileSrc","img_source_src","replace","str","util","urlencode","messages","isNotEmptyString","DoNothing","uploadDialog","UploadResponse","evt","responseJSONStr","unbind","UploadLeave","onError","UploadResponseIframe","e","event","UploadInterrupt","UploadNotDone","returnValue","UpdateListFiles","CallSubmit","GetInputData","elements","concat","findChildren","tag","el","disabled","toLowerCase","checked","l","options","Array","j","selected","SetFileInput","mfi_save","remove","onProgress","arConstParams","fileNodes","fd","item","append","Object","keys","k","key","cons","send","ajaxdata","fid","submit","percent","isNaN","top","MFIDD","params","loadCSS","status","showControl","fx","show","time","hide","loaded","variant","fileInputName","loading","message","file_exists","access_denied","BlogBFileJustDialog","_mkFileInput","mID","post","MFIS"],"mappings":"CAAA,WACA,GAAIA,OAAOC,gBACV,OACDD,OAAOE,wBAA0B,GACjCF,OAAOC,gBAAkB,SAASE,GAEjCC,KAAKC,WAAa,oBAClBD,KAAKE,MAAQ,MACbF,KAAKG,cAAgBJ,EAASK,YAE9BJ,KAAKK,KAAQN,EAAS,MAAQA,EAAS,MAAQC,KAAKM,QACpDN,KAAKO,UAAYR,EAAS,MAC1BC,KAAKQ,QAAU,KAEfR,KAAKS,aAAiBV,EAASU,WAAeV,EAASU,WAAa,KACpET,KAAKU,UAAYX,EAASW,UAC1BX,EAASY,cAAgBC,GAAGC,SAASb,KAAKc,UAAWd,MAErDA,KAAKe,IAAMhB,EAASgB,IACpBf,KAAKgB,eAAiBjB,EAASiB,eAC/BhB,KAAKiB,IAAMlB,EAASkB,IACpBjB,KAAKkB,WAAanB,EAASmB,SAE3BnB,EAASoB,OAASnB,KAClBD,EAASqB,QAAU,CAClBC,eAAmB,gBACnBC,SAAa,oBACbC,WAAe,cACfC,aAAiB,gBACjBC,SAAa,gBACbC,gBAAoB,wBAErB3B,EAAS4B,WAAa,SACtB5B,EAAS6B,YAAchB,GAAGiB,UAAU7B,KAAKS,WAAY,CAACqB,UAAa,0BAA2B,MAC9F9B,KAAK2B,WAAa5B,EAAS4B,WAC3B3B,KAAK+B,OAAUhC,EAAS,WAAa,GAErC,KAAMa,GAAGoB,gBAAiB,CACzBhC,KAAKE,MAAQ,IAAIU,GAAGoB,gBAAgBjC,GACpCa,GAAGqB,eAAejC,KAAM,mBAAoBY,GAAGC,SAASb,KAAKkC,iBAAkBlC,OAC/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